<?php
/**
 * Created by PhpStorm.
 * User: lee
 * Date: 2018/11/16
 * Time: 3:26 PM
 */


ini_set('display_errors', 1);
error_reporting(-1);
require_once '/data/wwwroot/g_vendor/autoload.php';


use Biz\service\Event;
use Biz\module\Decoupling\order\CreateOrder as deCreateOrder;

Event::consume(Event::ORDER_CREATE_SUCCESS, function ($message,$eventTag,$queueName) {

    new deCreateOrder($message,$queueName);

},'php.biz.cli.createorder');